﻿<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link href="Style/Css/Css.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="Js/jquery.js"></script>

    <style type="text/css">
        *
        {
            margin: 0px;
            padding: 0px;
        }
        body
        {
            cursor: auto;
        }
        html
        {
            overflow: hidden;
        }
        #sideBar
        {
            width: 450px;
            overflow: hidden;
        }
        #main
        {
            overflow: auto;
        }
        #toggleBar, .div
        {
            width: 3px;
            height: 100%;
            overflow: hidden;
            background: #F1F6FC;
            cursor: e-resize;
            border-left: 1px solid #99BBE8;
            border-right: 1px solid #99BBE8;
        }
        td
        {
            display: block;
            overflow: auto;
            word-break: break-all;
        }
        #mainUD
        {
            overflow: auto;
        }
        #toggleBarUD, .divUD
        {
            height: 3px;
            width: 100%;
            overflow: hidden;
            background: #F1F6FC;
            cursor: n-resize;
            border-top: 1px solid #99BBE8;
            border-bottom: 1px solid #99BBE8;
        }
    </style>

    <script type="text/javascript">

		
		var begin_x; 
		var begin_y;
		var drag_flag = false; 
		document.onmousemove = mouseDrag
		document.onmouseup = mouseDragEnd
		//半透明的拖动条（模拟）
		var alphaDiv="<div class='div' id='alphaDiv' style='position:absolute;height:2000px;top:0;z-index:10001;filter:alpha(opacity=50);opacity:0.5;left:200px'>&nbsp;</div>";
		var alphaDivUD="<div class='divUD' id='alphaDivUD' style='position:absolute;width:3000px;left:0;z-index:10001;filter:alpha(opacity=50);opacity:0.5;top:200px'>&nbsp;</div>";
		function setDrag(){
		
	        var currentLayout = document.getElementById("ctl00_tbLayout").value;

			drag_flag=true; 
			begin_x=event.x;
			begin_y=event.y;
			//添加蒙板
			createMask();
			//添加半透明拖动条
			if (currentLayout == "LR")
			    $(alphaDiv).css("left",$("#toggleBar")[0].offsetLeft).appendTo("body");
			else if (currentLayout == "UD")
			    $(alphaDivUD).css("top",$("#toggleBarUD")[0].offsetTop).appendTo("body");
		}
		
		//关键部分
		function createMask(){
			//创建背景
			var rootEl=document.documentElement||document.body;
			var docHeight=((rootEl.clientHeight>rootEl.scrollHeight)?rootEl.clientHeight:rootEl.scrollHeight) - 10+"px";
			var docWidth=((rootEl.clientWidth>rootEl.scrollWidth)?rootEl.clientWidth:rootEl.scrollWidth) - 10+"px";
			var shieldStyle ="position:absolute;top:0px;left:0px;width:"+docWidth+";height:"+docHeight+";background:#000;z-index:10000;filter:alpha(opacity=0);opacity:0";

			$("<div id='shield' style=\""+shieldStyle+"\"></div>").appendTo("body");
		}
		//拖动时执行的函数
		function mouseDrag(){
		
		try
		{
   		    var currentLayout = document.getElementById("ctl00_tbLayout").value;
   		}
   		catch (e)
   		{
   		    return;
   		}

			if(drag_flag==true){
				if (window.event.button==1){
				
				    if (currentLayout == "LR")
			        {
			            var now_x=event.x;
					    var value=parseInt($("#alphaDiv")[0].style.left)+now_x-begin_x;
					    
					    if (value < 100)
		                    value = 100;
		                if (value > document.body.clientWidth - 100)
		                    value = document.body.clientWidth - 100;
		                
					    $("#alphaDiv")[0].style.left=value+"px";
			 		    begin_x=now_x;
			        }
			        else if (currentLayout == "UD")
			        {
			            var now_y=event.y;
					    var value=parseInt($("#alphaDivUD")[0].style.top)+now_y-begin_y;
					    
					    if (value < 100)
		                    value = 100;
		                if (value > document.body.clientHeight - 100)
		                    value = document.body.clientHeight - 100;
		                    
					    $("#alphaDivUD")[0].style.top=value+"px";
			 		    begin_y=now_y;
			        }
				}	
				if (currentLayout == "LR")
			        $("body").css("cursor","e-resize");	//设定光标类型
			    else if (currentLayout == "UD")
			        $("body").css("cursor","n-resize");	//设定光标类型
				
			}else{
				try{
					$("#shield").remove();
					
					if (currentLayout == "LR")
			        {
					    $("#sideBar")[0].style.pixelWidth=$("#alphaDiv")[0].style.left;
					    $("#alphaDiv").remove();
			        }
			        else if (currentLayout == "UD")
			        {
					    $("#sideBar")[0].style.pixelHeight=$("#alphaDivUD")[0].style.top;
					    $("#alphaDivUD").remove();
			        }
			        
				}catch(e){}
			}
		}
		
		function mouseDragEnd(){
		    var currentLayout = document.getElementById("ctl00_tbLayout").value;

			//设置拖动条的位置
			if(drag_flag==true){
				//设定拖动条的位置（设定左侧的宽度）
				if (currentLayout == "LR")
				{
				    var finalWidth = parseInt($("#alphaDiv")[0].style.left);
		            if (finalWidth < 100)
		                finalWidth = 100;
		            if (finalWidth > document.body.clientWidth - 100)
		                finalWidth = document.body.clientWidth - 100;
				    $("#sideBar")[0].style.pixelWidth=finalWidth;
				    document.getElementById("ctl00_tbSideWidth").value = finalWidth;
				}
		        else if (currentLayout == "UD")
		        {
		            var finalHeight = parseInt($("#alphaDivUD")[0].style.top) - 27;
		            if (finalHeight < 100)
		                finalHeight = 100;
		            if (finalHeight > document.body.clientHeight - 100)
		                finalHeight = document.body.clientHeight - 100;
		        	$("#sideBar")[0].style.pixelHeight=finalHeight;
                    document.getElementById("ctl00_tbSideHeight").value = finalHeight;
		        }
			        
				$("#shield").remove();	//删除蒙板
				$("#alphaDiv").remove();	
				$("#alphaDivUD").remove();//删除半透明拖动条
				$("body").css("cursor","auto");	//恢复光标类型
			}
			drag_flag=false;
			PageResize();
		}
		
		function changeLayOut(targetLayout)
		{
		    var currentLayout = document.getElementById("ctl00_tbLayout").value;
            var sideBar = document.getElementById("sideBar");

		    if (targetLayout == "LR")
		    {
		        document.getElementById('trStyleUD1').style.display = "none";
		        document.getElementById('trStyleUD2').style.display = "none";
		        document.getElementById('toggleBar').style.display = "";
		        document.getElementById('main').style.display = "";

                var main = document.getElementById('main');
                var divIframe = document.getElementById('DetailFrame');
                main.appendChild(divIframe);

	            var rawWidth = parseInt(document.getElementById('ctl00_tbSideWidth').value);
                sideBar.style.width=rawWidth+"px";
		    }
		    else if (targetLayout == "UD")
		    {
		    	document.getElementById('trStyleUD1').style.display = "";
		        document.getElementById('trStyleUD2').style.display = "";
		        document.getElementById('toggleBar').style.display = "none";
		        document.getElementById('main').style.display = "none";
		        
		        var mainUD = document.getElementById('mainUD');
		        var divIframe = document.getElementById('DetailFrame');
                mainUD.appendChild(divIframe);

	            var rawHeight = parseInt(document.getElementById('ctl00_tbSideHeight').value);
                sideBar.style.height=rawHeight+"px";
                var width = document.body.clientWidth;
                sideBar.style.width= width - 2 + "px";
            }
            else if (targetLayout == "Simple")
		    {
		        document.getElementById('trStyleUD1').style.display = "none";
		        document.getElementById('trStyleUD2').style.display = "none";
		        document.getElementById('toggleBar').style.display = "none";
		        document.getElementById('main').style.display = "none";

                var width = document.body.clientWidth;
                sideBar.style.width= width - 2 + "px";
		    }
		    		        
		    document.getElementById("ctl00_tbLayout").value = targetLayout;
		    PageResize();
		    
		}
		
		function selectAll(cbSelecteAll)
        {
            for (var i=0; i<document.aspnetForm.elements.length; i++)
            {
	            var e = document.aspnetForm.elements[i];
	            if (e.type == "checkbox")
	            {
		            e.checked = cbSelecteAll.checked;
	            }
            }
        }
    </script>

    <script>
        var clickedItem;
        function OverChangeClass(obj)
        { 
            if (obj.className != "Cur")
                obj.className = 'Over'
        }
        function ReturnClass(obj)
        { 
            obj.className = obj.oldclass;
        }
        function ClickChangeClass(obj)   //仅改变菜单样式，并控制子菜单的显示，不做跳转之类的操作
        { 
            if(clickedItem != null)
            {
                clickedItem.className = 'Normal';
                clickedItem.oldclass = 'Normal';
            }
            clickedItem = obj;
            obj.className = 'Cur';
            obj.oldclass = 'Cur';
        }
        
        function OpenDetail(url)
        {
            if (document.getElementById("ctl00_tbLayout").value == "Simple")
            {
                window.open(url, '', 'resizable=yes, width=330, height=400');
                window.open(url, 'DetailFrame', '');
            }
            else
                window.open(url, 'DetailFrame', '');
        }
        
        function SwitchDefaultTableRow()
        {
            if (document.getElementById("ctl00_tbLayout").value != "Simple")
            {
                if (document.getElementById("TableRow_0") != null)
                {
                    document.getElementById("TableRow_0").click();
                }
            }
        }
        
        function ChangeAdvanceSearch()
        {
	        var height = document.body.clientHeight;
	        var mainList = document.getElementById("MainList");
	        var search = document.getElementById('AdvancedSearch');
	        if(search.style.display=='none')
	        {
	            document.getElementById("imgExpand").src="../Images/Icon/icon-collapse.png" ;
		        search.style.display='';		
	        }
	        else
	        {
		        document.getElementById("imgExpand").src="../Images/Icon/icon-expand.png" ;
		        search.style.display='none';
	        }
        }
    </script>

    <script type="text/javascript" src="../Js/jquery-1.2.6.min.js"></script>

    <script type="text/javascript" src="../Js/jquery-1.2.6-vsdoc.js"></script>

    <script type="text/javascript">

        function addPost() {
            var width = 350;
            var height = 320;
            window.open("工会干部生日慰问信息数据库2.htm?Type=Add&Nocache=" + Math.random(), "newwindow", 'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,left=' + (screen.width - width) / 2 + ',top=' + (screen.height - height) / 2);
        }
       
       function editPost(giftid)
        {
            var width = 350;
            var height = 320;
            window.open("工会干部生日慰问信息数据库2.htm?GiftID="+giftid+"&Type=Edit&Nocache=" + Math.random(), "newwindow", 'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,left=' + (screen.width - width) / 2 + ',top=' + (screen.height - height) / 2);
        }
       
        function advancedSearchClick() {
            if (window.event.keyCode == 13) {
                document.getElementById("ctl00_AdvancedSearchPlaceHolder_btnAdvancedSearch").click();
            }
        }
        function searchClick() {
            if (window.event.keyCode == 13) {
                document.getElementById("ctl00_ListToolBarPlaceHolder_btnSearch").click();
            }
        }
        function refresh() {
            document.getElementById("ctl00_ListToolBarPlaceHolder_btnRefresh").click();
        }

        function clearText(control, text) {
            if (control.value == text)
                control.innerText = "";
        }
        function insertText(control, text) {
            if (control.value == "")
                control.innerText = text;
        }
    
        function stopBubble(e, id) {
            var e = e ? e : window.event;
            if (window.event) { // IE   
                e.cancelBubble = true;
            } else { // FF   
                //e.preventDefault();    
                e.stopPropagation();
            }
            OpenDetail('ClassMemberList.aspx?ClassID=' + id + '&IsSelectClass=true&Nocache=' + Math.random());
        }   
    </script>

    <title>工会干部生日慰问信息数据库 </title>
</head>
<body scroll="no">
    <form name="aspnetForm" method="post" action="GiftManageList.aspx?nocache=0.8340940658368804"
    id="aspnetForm">
    <div>
        <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
        <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
        <input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
        <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJOTEwNTU1Njc0DxYCHgxTZWFyY2hDbGF1c2UFGDE9MSBhbmQgSXNFbmFibGU9J1RydWUnIBYCZg8PFg4eElNob3dMUkxheW91dEJ1dHRvbmgeElNob3dVRExheW91dEJ1dHRvbmgeFlNob3dTaW1wbGVMYXlvdXRCdXR0b25oHhJTaG93QWR2YW5jZWRTZWFyY2hoHglTaG93UGFnZXJnHg1TaG93U2Nyb2xsRGl2Zx4NRGVmYXVsdExheW91dAUCTFJkFgICAw9kFhICBA8WAh4HVmlzaWJsZWhkAgUPFgIfCGhkAgYPFgIfCGhkAgcPZBYCAgMPD2QWBh4Hb25mb2N1cwUnY2xlYXJUZXh0KHRoaXMsICfmkJzntKIg56S85ZOB5ZCN56ewJyk7HgZvbmJsdXIFKGluc2VydFRleHQodGhpcywgJ+aQnOe0oiDnpLzlk4HlkI3np7AnKTseCW9ua2V5ZG93bgUOc2VhcmNoQ2xpY2soKTtkAggPFgIeBXN0eWxlBQ1kaXNwbGF5Om5vbmU7ZAILDw8WBB4LT3JkZXJDb2x1bW4FCkNyZWF0ZVRpbWUeDk9yZGVyRGlyZWN0aW9uBQRERVNDZGQCDA9kFggCAQ8PFgYeBVdpZHRoZR4EVHlwZQspXExpc3RIZWFkZXJUeXBlQ29kZSwgQXBwX0NvZGUueHc1YXVkN2YsIFZlcnNpb249MC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1udWxsAB4ISW1hZ2VTcmNlZBYEZg8WBh4Fd2lkdGhkHgVhbGlnbgUGY2VudGVyHwhoFgYCAQ8WAh4EVGV4dAUM56S85ZOB5ZCN56ewZAIDD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ZXRlBTljdGwwMCRMaXN0Q29udGVudFBsYWNlSG9sZGVyJHJwdEdpZnRMaXN0JGN0bDEwJGlidG5EZWxldGUFOWN0bDAwJExpc3RDb250ZW50UGxhY2VIb2xkZXIkcnB0R2lmdExpc3QkY3RsMTEkaWJ0bkRlbGV0ZQU5Y3RsMDAkTGlzdENvbnRlbnRQbGFjZUhvbGRlciRycHRHaWZ0TGlzdCRjdGwxMiRpYnRuRGVsZXRlBTljdGwwMCRMaXN0Q29udGVudFBsYWNlSG9sZGVyJHJwdEdpZnRMaXN0JGN0bDEzJGlidG5EZWxldGXSqPPwtZYARFyPNdkiugOd507jLQ==" />
    </div>

    <script type="text/javascript">
//<![CDATA[
var theForm = document.forms['aspnetForm'];
if (!theForm) {
    theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
    </script>

    <script type="text/javascript">
                                                    function checkKey()
		                                            {
			                                            var keys = new Array(48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 8, 46, 37, 38, 39, 40);
                                            			
			                                            for (var i = 0; i < keys.length; i ++)
			                                            {
				                                            if (window.event.keyCode == keys[i])
					                                            return true;
			                                            }
                                            			
			                                            if (window.event.keyCode == 13)
			                                            {
			                                                document.getElementById("ctl00_pgList_btnGoto").click();
			                                                return false;
			                                            }
			                                            return false;
		                                            }
                                            		
    	                                            function checkPageIndex()
		                                            {

		                                                var pageCount = parseInt(document.getElementById("ctl00_pgList_lblPageCount").innerText, 10);
		                                                var index = 1;
		                                                try
		                                                {
		                                                    index = parseInt(document.getElementById("ctl00_pgList_tbGotoPage").value, 10);
		                                                }
		                                                catch (e)
		                                                {
		                                                    if (document.getElementById("ctl00_pgList_tbGotoPage").value.length > 0)
		                                                    {
		                                                        alert("页码错误");
		                                                        document.getElementById("ctl00_pgList_tbGotoPage").focus();
		                                                    }
		                                                    return false;
		                                                }
                                            		    
                                            		    
		                                                if (index > 0 && index <= pageCount)
		                                                    return true;
		                                                if (document.getElementById("ctl00_pgList_tbGotoPage").value.length > 0)
		                                                {
		                                                    alert("页码错误");
		                                                    document.getElementById("ctl00_pgList_tbGotoPage").focus();
		                                                }
		                                                return false;
		                                            }
    </script>

    <div>
        <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWIgKt+6XvCgLdmrKSCQK4l5znBwKuwMTPDwKc7YzFCgKggZOmDQKV456dCALB5OmWAgKAyrvbBwLN153PBgLF+67qAgKT0LXfDgLq/9PxCQKap6mDDAKlp6WiBAKnp5GkDwKmp63sBwKkp7mHDQKnp7WmBQKhp6FJAqCnvfAIAp6nyfoNApmnxZkGAs3Cq4MMAszCp6IEAs7Ck6QPAsnCr+wHAubvkIUFAtqfxs4KAoKmnu0HAozJyIALAonJ9IALAquIk9cMAqqIk9cM7aFVOk2q71N3QEaXVcA9mHgu+bs=" />
    </div>
    <div style="display: none">
        <input name="ctl00$tbLayout" type="text" id="ctl00_tbLayout" value="LR" />
        <input name="ctl00$tbSideWidth" type="text" id="ctl00_tbSideWidth" value="450" />
        <input name="ctl00$tbSideHeight" type="text" id="ctl00_tbSideHeight" value="200" />
    </div>
    <div>
        <table cellspacing="0" cellpadding="0" border="0" class="MainTable" width="100%"
            height="100%" style="">
            <tr>
                <td colspan="3" class="TitleBar">
                    <div class="MainTitle">
                        工会干部生日慰问信息数据库
                    </div>
                    <div class="RightTool">
                    </div>
                </td>
            </tr>
            <tr>
                <td width="1">
                    <div id="sideBar">
                        <table cellspacing="0" cellpadding="0" border="0" class="" width="100%">
                            <tr>
                                <td class="ToolBar">
                                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                        <tr>
                                            <td>
                                                <div style="display: none">
                                                    <input type="submit" name="ctl00$ListToolBarPlaceHolder$btnRefresh" value="" id="ctl00_ListToolBarPlaceHolder_btnRefresh" />
                                                </div>
                                                <table cellspacing="2" cellpadding="0" border="0" width="100%">
                                                    <tr>
                                                        <td class="ToolMenu" width="60">
                                                            <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                                                                onclick="addPost();">
                                                                <span>
                                                                    <img src="../Images/Icon/Object/Dataset-add.gif" alt="" /></span><span>新建</span>
                                                            </div>
                                                        </td>
                                                        <td>
                                                            <table cellspacing="0" cellpadding="0" border="0" class="TableSearch" width="100%">
                                                                <tr>
                                                                    <td width="100%">
                                                                        <input name="ctl00$ListToolBarPlaceHolder$tbSearch" type="text" value="搜索 退休职工" id="ctl00_ListToolBarPlaceHolder_tbSearch"
                                                                            class="TextBox" onfocus="clearText(this, '搜索 退休职工');" onblur="insertText(this, '搜索 退休职工');"
                                                                            onkeydown="searchClick();" />
                                                                    </td>
                                                                    <td width="10">
                                                                        <a id="ctl00_ListToolBarPlaceHolder_btnSearch" href="javascript:__doPostBack('ctl00$ListToolBarPlaceHolder$btnSearch','')">
                                                                            <img alt="搜索 退休职工" src="../Images/Icon/Icon-Search.png" align="absmiddle" style="cursor: pointer;" /></a>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td id="ctl00_tdAdvancedSearchKey" width="14" style="display: none;">
                                                <table cellspacing="0" cellpadding="0" border="0">
                                                    <tr>
                                                        <td width="10">
                                                            <img align="absmiddle" src="../Images/Icon/icon-expand.png" alt="高级搜索" style="cursor: pointer;"
                                                                onclick="ChangeAdvanceSearch();" id="imgExpand" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr id="AdvancedSearch" style="display: none; position: absolute">
                                            <td class="AdvanceSearch" colspan="2">
                                                <br style="font-size: 5px" />
                                                <input type="hidden" name="ctl00$ShowAdvancedSearch" id="ctl00_ShowAdvancedSearch"
                                                    value="0" />
                                                <table cellspacing="4" cellpadding="0" border="0" width="100%">
                                                    <tr>
                                                        <td width="60">
                                                            礼品名称
                                                        </td>
                                                        <td>
                                                            <input name="ctl00$AdvancedSearchPlaceHolder$tbSearchTitle" type="text" id="ctl00_AdvancedSearchPlaceHolder_tbSearchTitle"
                                                                class="Textbox01" style="width: 100%;" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" align="right">
                                                            <input type="submit" name="ctl00$AdvancedSearchPlaceHolder$btnAdvancedSearch" value="查询"
                                                                id="ctl00_AdvancedSearchPlaceHolder_btnAdvancedSearch" class="Button01" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                        <tr>
                                            <td>
                                                <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">
                                                    <td id="ctl00_ListHeaderPlaceHolder_lhGiftName_tdHeaderButton" style="cursor: hand"
                                                        width="120" onclick="document.getElementById('ctl00_ListHeaderPlaceHolder_lhGiftName_btnSort').click()"
                                                        align="center">
                                                        姓名
                                                        <div style="display: none">
                                                            <input type="submit" name="ctl00$ListHeaderPlaceHolder$lhGiftName$btnSort" value=""
                                                                id="ctl00_ListHeaderPlaceHolder_lhGiftName_btnSort" /></div>
                                                    </td>
                                                    <td id="ctl00_ListHeaderPlaceHolder_lhGiftPrice_tdHeaderButton" style="cursor: hand"
                                                        onclick="document.getElementById('ctl00_ListHeaderPlaceHolder_lhGiftPrice_btnSort').click()"
                                                        width="100" align="center">
                                                   所在单位
                                                        <div style="display: none">
                                                            <input type="submit" name="ctl00$ListHeaderPlaceHolder$lhGiftPrice$btnSort" value=""
                                                                id="ctl00_ListHeaderPlaceHolder_lhGiftPrice_btnSort" /></div>
                                                    </td>
                                                    <td id="ctl00_ListHeaderPlaceHolder_lhGiftUnit_tdHeaderButton" style="cursor: hand"
                                                        onclick="document.getElementById('ctl00_ListHeaderPlaceHolder_lhGiftUnit_btnSort').click()"
                                                        width="100" align="center">
                                                        联系方式
                                                        <div style="display: none">
                                                            <input type="submit" name="ctl00$ListHeaderPlaceHolder$lhGiftUnit$btnSort" value=""
                                                                id="ctl00_ListHeaderPlaceHolder_lhGiftUnit_btnSort" /></div>
                                                    </td>
                                                    <td id="ctl00_ListHeaderPlaceHolder_lhOperate_tdHeader" style="cursor: normal" width="60"
                                                        align="center">
                                                        操作
                                                    </td>
                                                </table>
                                            </td>
                                            <td id="ctl00_TdForScroll" width="16">
                                                <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">
                                                    <tr>
                                                        <td style="height: 20px">
                                                            &nbsp;
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div id="MainList" style="width: 100%; overflow: auto;" class="ScrollDiv">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
                                            <tr id="TableRow_0" style="cursor: hand; text-align: left;" class="Normal" oldclass="Normal"
                                                onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)" onclick="ClickChangeClass(this);OpenDetail('工会干部生日慰问信息数据库2.htm?GiftID=deebea26-2145-433a-badc-fd719352af68&Type=Edit2&Nocache=' + Math.random());">
                                                <td style="display: none;">
                                                    deebea26-2145-433a-badc-fd719352af68
                                                </td>
                                                <td   width="120" >
                                                    <span title='张三' style="white-space: nowrap; display: inline;">张三</span>
                                                </td>
                                                <td style="text-align: center; width: 100px;">
                                                   XX单位
                                                </td>
                                                <td style="text-align: center; width: 80px;">
                                                    <span title='1381745804'>1381745804</span>
                                                </td>
                                                <td style="text-align: center; width: 60px;">
                                                    <img alt="编辑" src="../Images/Icon/Action/edit.gif" onclick="editPost('deebea26-2145-433a-badc-fd719352af68')" />
                                                    <input type="image" name="ctl00$ListContentPlaceHolder$rptGiftList$ctl00$ibtnDelete"
                                                        id="ctl00_ListContentPlaceHolder_rptGiftList_ctl00_ibtnDelete" title="删除" src="../Images/Icon/Action/delete.gif"
                                                        style="border-width: 0px;" />
                                                </td>
                                            </tr>
                                                <tr id="Tr1" style="cursor: hand; text-align: left;" class="Normal" oldclass="Normal"
                                                onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)" onclick="ClickChangeClass(this);OpenDetail('工会干部生日慰问信息数据库2.htm?GiftID=deebea26-2145-433a-badc-fd719352af68&Type=Edit2&Nocache=' + Math.random());">
                                                <td style="display: none;">
                                                    deebea26-2145-433a-badc-fd719352af68
                                                </td>
                                                <td   width="120" >
                                                    <span title='李四' style="white-space: nowrap; display: inline;">李四</span>
                                                </td>
                                                <td style="text-align: center; width: 100px;">
                                                   XX单位
                                                </td>
                                                <td style="text-align: center; width: 80px;">
                                                    <span title='1381745804'>1381745804</span>
                                                </td>
                                                <td style="text-align: center; width: 60px;">
                                                    <img alt="编辑" src="../Images/Icon/Action/edit.gif" onclick="editPost('deebea26-2145-433a-badc-fd719352af68')" />
                                                    <input type="image" name="ctl00$ListContentPlaceHolder$rptGiftList$ctl00$ibtnDelete"
                                                        id="Image1" title="删除" src="../Images/Icon/Action/delete.gif"
                                                        style="border-width: 0px;" />
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="TablePager">
                                        <tr>
                                            <td align="left" nowrap="" style="height: 25px">
                                                &nbsp;<a id="ctl00_pgList_lbtnGotoFirstPage" disabled="disabled" class="blue-01">首页</a>
                                                <a id="ctl00_pgList_lbtnGotoPrevPage" disabled="disabled" class="blue-01">上一页</a>
                                                <a id="ctl00_pgList_lbtnGotoNextPage" disabled="disabled" class="blue-01">下一页</a>
                                                <a id="ctl00_pgList_lbtnGotoLastPage" disabled="disabled" class="blue-01">尾页</a>
                                                <span class="or-01">[ <span id="ctl00_pgList_lblCurrentPageIndex">1</span> / <span
                                                    id="ctl00_pgList_lblPageCount">1</span> ]</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                第
                                                <input name="ctl00$pgList$tbGotoPage" type="text" autocomplete="off" id="ctl00_pgList_tbGotoPage"
                                                    class="Textbox02" onkeydown="if (!checkKey()) return false;" style="width: 40px;" />
                                                页&nbsp;
                                                <input type="submit" name="ctl00$pgList$btnGoto" value="跳转" onclick="if (!checkPageIndex()) return false;"
                                                    id="ctl00_pgList_btnGoto" class="button01" />
                                            </td>
                                            <td align="right" nowrap style="height: 25px">
                                                &nbsp; 每页<select name="ctl00$pgList$ddlPageSize" onchange="javascript:setTimeout('__doPostBack(\'ctl00$pgList$ddlPageSize\',\'\')', 0)"
                                                    id="ctl00_pgList_ddlPageSize">
                                                    <option selected="selected" value="25">25</option>
                                                    <option value="50">50</option>
                                                    <option value="100">100</option>
                                                    <option value="200">200</option>
                                                </select>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td width="3" onmousedown="setDrag()" id="toggleBar">
                </td>
                <td id="main" valign="top">
                    <iframe frameborder="2" scrolling="no" width="100%" name="DetailFrame" id="DetailFrame"
                        src="" height="100%"></iframe>
                </td>
            </tr>
            <tr id="trStyleUD1">
                <td height="3" onmousedown="setDrag();PageResize()" id="toggleBarUD" colspan="3">
                </td>
            </tr>
            <tr id="trStyleUD2">
                <td id="mainUD" valign="top" colspan="3">
                </td>
            </tr>
        </table>
    </div>

    <script>
        function PageResize()
        {
   		    var currentLayout = document.getElementById("ctl00_tbLayout").value;

	        var height = document.body.clientHeight;
	        var width = document.body.clientWidth;
	        var mainList = document.getElementById("MainList");
	        var sideBar = document.getElementById("sideBar");
	        var trStyleUD1  = document.getElementById("trStyleUD1");
	        var main = document.getElementById("main");
	        var mainUD = document.getElementById("mainUD");
	        
	        if (currentLayout == "LR")
	        {
	            if (height > 99)
	            {
	                mainList.style.height=(height-99)+"px";
                    sideBar.style.height=(height-28)+"px";
                    main.style.height=(height-28)+"px";
                    mainUD.style.height = "0px";
                }
            

		    }
		    else if (currentLayout == "UD")
		    {
		        var sideBarHeightString = sideBar.style.height;
		        var sideBarHeightValue = sideBarHeightString.substring(0, sideBarHeightString.indexOf('px'));
		        var sideBarHeight = parseInt(sideBarHeightValue);

		        mainList.style.height=sideBarHeight - 71 +"px";
                main.style.height=sideBarHeight+"px";
                mainUD.style.height = (height - sideBarHeight - 31) + "px";
                
                sideBar.style.width= width - 2 + "px";
		    }
		    else if (currentLayout == "Simple")
	        {
	            if (height > 99)
	            {
	                mainList.style.height=(height-99)+"px";
                    sideBar.style.height=(height-28)+"px";
                    main.style.height=(height-28)+"px";
                    mainUD.style.height = "0px";
                    
                    sideBar.style.width= width - 2 + "px";
                }
		    }
		    
		    if (document.getElementById("ctl00_TdForScroll") != null)
		    {
		    
		    if(mainList.clientHeight<mainList.scrollHeight)
	                document.getElementById("ctl00_TdForScroll").style.display="";
            else
	                document.getElementById("ctl00_TdForScroll").style.display="none";
	        }

        }
        changeLayOut(document.getElementById("ctl00_tbLayout").value);
        PageResize();
        window.onresize = PageResize;
        if (document.getElementById('ctl00_ShowAdvancedSearch').value == "1")
            ChangeAdvanceSearch();
    </script>

    <script language='javascript'>SwitchDefaultTableRow();</script>

    </form>
</body>
</html>
